package com.qipay.pay;

import com.qipay.pay.entity.CpPayUnionNativeRequest;
import com.qipay.pay.entity.CpPayUnionNetRequest;
import com.qipay.pay.entity.CpPayUnionQuickRequest;
import com.qipay.security.jwt.JWTUser;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

public interface UnionService {
    @Transactional
    Map<String, Object> payNative(
            CpPayUnionNativeRequest entity,
            JWTUser loggedUser) throws Exception;

    @Transactional
    Map<String, Object> payNet(
            CpPayUnionNetRequest entity,
            JWTUser loggedUser) throws Exception;

    @Transactional
    Map<String, Object> payQuick(
            CpPayUnionQuickRequest entity,
            JWTUser loggedUser) throws Exception;

    @Transactional
    Map<String, Object> payQuickConfirm(
            CpPayUnionQuickRequest entity,
            JWTUser loggedUser) throws Exception;
}
